package interpreter;

import interpreter.operation.Instruct;

import java.util.*;

/**
 * @author Roderland
 * @since 1.0
 */
public class Memory {
    public static Queue<Instruct> instructs = new LinkedList<>();
    public static Map<Integer, Object> memory = new HashMap<>();

    public static Object get(int address) {
        return memory.get(address);
    }
    public static void set(int address, Object o) {
        memory.put(address, o);
    }
}
